pkgname=kitemviews
pkgver=5.36.0
pkgrel=1
pkgdesc='Widget addons for Qt Model/View'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-qtbase"
makedepends="extra-cmake-modules qt5-qttools-dev clang py3-qt5 doxygen"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="8cc1ecb3cabee7853338500ce53e19b57268d9e992ecfd1b319704f7f46a5797d560d433c615b95e78e80b74342be16144b6ef9c4038265e3db5a2b2f57c1162  kitemviews-5.36.0.tar.xz"
